<?php
/**
 * Create by 11li
 * Date 2020/1/8
 * Time 11:13
 * 分类
 */

namespace app\api\controller\v1;

use app\common\controller\Api;
use app\common\service\CategoryService;

class Category extends Api {
	protected $noNeedLogin = '*';
	
	public function index() {
		$obj = new CategoryService();
		$res = $obj->getCateByPid();
		$this->success('查询成功', $res);
	}
}
